FROM openjdk:8-jdk-alpine

# build args
#ARG JAR_FILE
#ARG PORT
#
#
#MAINTAINER tjh@tjh.com
#
#
#ADD ${JAR_FILE} app.jar
#
#
#EXPOSE ${PORT}
#
#
#ENTRYPOINT ["java", "-jar", "app.jar"]

MAINTAINER tjh@tjh.com

RUN  mkdir  -p  /canal-server

ADD ./canal-server /canal-server

RUN  chmod +x /canal-server/bin*


# 2222 sys , 8000 debug , 11111 canal , 11112 metrics
EXPOSE 2222 11111 8000 11112

ENTRYPOINT ["/canal-server/bin/startup.sh"]